#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

static off_t flen(const char *fname){
	struct stat statres;
	if(stat(fname,&statres) < 0){
		perror("stat()");
		exit(1);

	}

	return statres.st_size;
}


int main(int argc, char **argv){
	if(srgc < 2){
		fprintf(stderr, "usage...");
		exit(1);
	}
	
	printf("%lld \n",flen(argv[1]));


	exit (0);
}
